class Starlit extends egret.TextField {
  private tween: egret.Tween;

  public constructor(){
    super();
    this.text = '★';
    this.size = 12;
    this.textColor = 0x03486A;

    this.tween = egret.Tween.get(this, { loop: true }).to({
      alpha: 0
    }, 1000).to({
      alpha: 1
    }, 1000).wait(1000);

    this.hide();
  }

  public show(){
    this.visible = true;
  }

  public hide(){
    this.visible = false;
  }

}